/**
 * 
 */
package org.xelnaga.defiler.service;

import java.util.ArrayList;
import java.util.List;

import org.xelnaga.defiler.domain.RelationshipModel;

/**
 * @author qijb
 *
 */
public class ContentletRelationshipRecords<T> {
	private RelationshipModel relationship;
	private List<T> records;
	private boolean hasParent; 
	
	/**
	 * @param relationship
	 */
	public ContentletRelationshipRecords(RelationshipModel relationship, boolean hasParent) {
		this.relationship = relationship;
		this.records = new ArrayList<T> ();
		this.hasParent = hasParent;
	}
	
	/**
	 * @return Returns the hasParent.
	 */
	public boolean isHasParent() {
		return hasParent;
	}

	/**
	 * @param hasParent The hasParent to set.
	 */
	public void setHasParent(boolean hasParent) {
		this.hasParent = hasParent;
	}

	/**
	 * @return Returns the records.
	 */
	public List<T> getRecords() {
		return records;
	}
	/**
	 * @param records The records to set.
	 */
	public void setRecords(List<T> records) {
		this.records = records;
	}
	/**
	 * @return Returns the relationship.
	 */
	public RelationshipModel getRelationship() {
		return relationship;
	}
	/**
	 * @param relationship The relationship to set.
	 */
	public void setRelationship(RelationshipModel relationship) {
		this.relationship = relationship;
	}
}
